<?php

class CategoryModel extends CommonModel
{
    public function getCategory()
    {
        $map['status'] = array('eq', 1);
        $list = $this->where($map)->order('create_time desc')->select();
        return $list;
    }
}